// 这是一个动态的路由
// 第一步 就是引入一级路由
import Layout from '@/layout'
// 第二步 导出路由

export default {
  // 分为一级路由 和二级路由
  path: '/employees',
  component: Layout,
  name: 'employees',
  children: [
    {
      path: '', //为什么不加路劲
      component: () => import('@/views/employees'), //为什么这样写
      meta: { title: '员工管理', icon: 'people' }
    },
    {
      path: 'detail/:id',
      hidden: true,
      meta: { title: '员工详情' },
      component: () => import('@/views/employees/detail')
    },
    {
      path: 'print/:id',
      // 为什么要少些一个吗 / ????
      // component: () => import('@views/employees/print'),
      component: () => import('@/views/employees/print'),
      hidden: true,
      meta: {
        title: '员工打印'
      }
    }
  ]
}
